package com.icefish.bean.fastjsonParse.getGoodAndCommnent;

import com.icefish.bean.Comment;
import com.icefish.bean.Good;

import java.util.ArrayList;
import java.util.Date;

public class GoodAndComment {

    private Integer  goods_id;
    private String  goods_name;
    private Integer  goods_price;
    private String  goods_picture;
    private String  goods_describe;
//    private Integer says_id;
//    private Date says_time;
//    private String says;
//    private Integer user_id;
//    private String username;

    private ArrayList <Comment> comment;

    public GoodAndComment() {
    }

    // 两个对象快速生成数据
    public GoodAndComment(Good good,ArrayList <Comment> comment) {
        this.goods_id = good.getGoods_id();
        this.goods_name = good.getGoods_name();
        this.goods_price = good.getGoods_price();
        this.goods_picture = good.getGoods_picture();
        this.goods_describe = good.getGoods_describe();
        this.comment = comment;
    }

    public Integer getGoods_id() {
        return goods_id;
    }

    public String getGoods_name() {
        return goods_name;
    }

    public Integer getGoods_price() {
        return goods_price;
    }

    public String getGoods_picture() {
        return goods_picture;
    }

    public String getGoods_describe() {
        return goods_describe;
    }

    public ArrayList<Comment> getComment() {
        return comment;
    }

    public void setGoods_id(Integer goods_id) {
        this.goods_id = goods_id;
    }

    public void setGoods_name(String goods_name) {
        this.goods_name = goods_name;
    }

    public void setGoods_price(Integer goods_price) {
        this.goods_price = goods_price;
    }

    public void setGoods_picture(String goods_picture) {
        this.goods_picture = goods_picture;
    }

    public void setGoods_describe(String goods_describe) {
        this.goods_describe = goods_describe;
    }

    public void setComment(ArrayList<Comment> comment) {
        this.comment = comment;
    }

    @Override
    public String toString() {
        return "GoodAndComment{" +
                "goods_id=" + goods_id +
                ", goods_name='" + goods_name + '\'' +
                ", goods_price=" + goods_price +
                ", goods_picture='" + goods_picture + '\'' +
                ", goods_describe='" + goods_describe + '\'' +
                ", comment=" + comment +
                '}';
    }
}
